package com.westos.userauth.dao.mybatis;

/**
 * @Description
 * @Date 2020/11/15
 * @Created by 李瑞
 */

import com.westos.userauth.domain.PartyAttribute;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface PartyAttributeDAO {
    /**
     * 根据partyId删除 PartyAttribute表中的关联行
     */
    int deletePartyAttributeByPartyId(String partyId);

    int insertPartyAttribute(PartyAttribute partyAttribute);

    int updatePartyAttribute(@Param("partyAttribute") PartyAttribute partyAttribute, @Param("partyId") String partyId);

    int deletePartyAttribute(@Param("partyId") String partyId);

    //正在修改。。。。。
    //根据AttrName查询AttrValue
    //String queryAttributeByAttrName(String attrName);

    PartyAttribute queryAttribute(String partyId);

    List<PartyAttribute> queryPartyAttributeByAttrName(String attrName);
}
